package com.dalei.vdserver.webservice;

import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public interface DetectionService {

	// Get the list of detection tasks
	public String getDetectionTasks(@WebParam(name = "deviceId") int deviceId);
	
	// Lock the detection task
	public int lockDetectionTask(@WebParam(name = "fid") int fid);
	
	// Unlock the detection task
	public int unlockDetectionTask(@WebParam(name = "fid") int fid);
	
	// Get the vehicle information
	public String getVehicleInformation(@WebParam(name = "fid") int fid);

	// Save Detection Result
	public int saveDetectionResult(@WebParam(name = "json") String json,
			@WebParam(name = "crc32") long crc32);
}
